package org.example.consumer.service;


import org.example.consumer.factory.RemoteHelloServiceFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

@FeignClient(contextId = "remotehelloService", value = "demo-provider", fallbackFactory = RemoteHelloServiceFallbackFactory.class)
public interface RemoteHelloService {

    @GetMapping("/hello")
    String hello();

}